<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>订单处理</title>
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" href="../m/css/common/mui.min.css">
	<link rel="stylesheet" href="../m/css/common/mui.extra.css">
	<link rel="stylesheet" href="../m/css/common/mui.picker.min.css">
	<link rel="stylesheet" href="../m/css/common/common.css">
	<style>
		.mui-table-view:before,
		.mui-table-view:after {
			background: none;
		}
	</style>
</head>

<body class="cj-bg-light-grey">
	<div id="orderPage" style="display:none;">
		<header class="mui-bar mui-bar-nav mui-white-nav-bar">
			<h1 class="mui-title">订单处理</h1>
		</header>
		<div class="cj-line-20"></div>
		<div class="cj-line-20"></div>

		<div class="mui-content-padded cj-bg-white" id="tpl" style="padding:10px;text-align:center;margin-bottom:0px;">
			<p style="font-size:14px;font-weight:bold;color:#000;" id="handle">订单处理中...</p>
			<p style="font-size:12px;" id="goDetail">查看订单详细</p>
		</div>
	</div>

		<!-- <div class="mui-content-padded cj-bg-white" style="border-top:1px solid #e8e8e8;margin-top:0px;padding:10px;text-align:center;">
			<span class="mui-icon mui-icon-phone"></span>&nbsp;&nbsp;&nbsp;联系商家
		</div> -->
		<script src="../m/js/common/qrcode.min.js"></script>
		<script src="../m/js/common/jquery.min.js"></script>
		<script src="../m/js/common/common.js"></script>
		<script src="../m/js/common/public.js"></script>
		<script>
			autoLogin(2,2);
			
			var id = getUrlParam("id");
			document.getElementById("goDetail").onclick = function(){
				location.href = "/admin/m/detail?id="+id;
			};
			$.ajax({
				url: "/admin/orders/update?spid=" + id + "&state=4",
				async: false,
				dataType: "json",
				success: function(res) {
					if (res.code == 200) {
						document.getElementById("handle").innerHTML = "处理成功";

					}
				}
			});
		</script>
</body>

</html>
